<HTML>
<HEAD>
    <META HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"/>
    <LINK REL="stylesheet" TYPE="text/css" HREF="/static/cms.css" />
    <TITLE>{{title}}</TITLE>
</HEAD>

<BODY>
<a HREF="/"><img src="/static/pics/indiankanoon.png" class="small_logo"></a>

<DIV CLASS="static_bar">
  {% if forum %}
    {{forum.title}} 
  {% else %}
    All forums
  {% endif %}

  <DIV CLASS="right_links">
    <A CLASS="top_links" HREF="/">Main Search</a>      |
    <A CLASS="top_links" HREF="/advanced.html">Advanced Search</a> |
    <A CLASS="top_links" HREF="/static/about.html">About</a>
  </DIV>
</DIV>

<DIV CLASS="groups">   
  <DIV CLASS="group_title">Groups</DIV>
  <DIV CLASS="group_item"><A HREF="/cms/forums/">All</A> </DIV>
  {% for forum in forums %}
    <DIV CLASS="group_item"><A HREF="/cms/forums/viewforum/{{forum.id}}/">{{forum.title}}</A> </DIV>
  {% endfor %}
</DIV>

<DIV CLASS="userin">
  <DIV CLASS="uname">{{uname}}</DIV>
  {% ifequal uname 'Anonymous User' %} 
    <FORM METHOD="POST" action="/cms/users/login/">
      Username<BR> <input size="13" type="text" name="uname"/> <BR>
      Password<BR>  <input size="13" type="password" name="passwd"/> <BR>
      <INPUT type="submit" value="Login"/>
    </FORM>
    <A HREF="/cms/users/signup/?nextpage={{nextpage}}">Sign up</A>
  {% else %}
    <A HREF="/cms/users/viewprofile/?nextpage={{nextpage}}">My Profile</A><BR>
    <A HREF="/cms/users/logout/?nextpage={{nextpage}}">Logout</A>
  {% endifequal %}
</DIV>
